<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./font/iconfont.css">
</head>
<body>
<div class="container">
    这是按时打发打法案发打啊打法
    <i class="iconfont icon-zanting2"></i>
</div>
</body>
<script>
    var url = 'http://search.jumei.com/ajax_get_assoc_word'
    // var data = '?search=js&container=top_out_search_pop_div&callback=jQuery1112004322547524411435_1635306439819&_=1635306439824'
    var data = {
        search:'js',
        container:'top_out_search_pop_div',
        callback:'jQuery1112004322547524411435_1635306439819',
        _:+new Date()
    }
    //在地址后拼接
    // url+=data
    url += '?'
    var f = ''
    for(var attr in data){
        url += f + attr + '=' +data[attr]
        f='&'
    }

    var script = document.createElement('script');
    script.setAttribute('src',url)
    document.head.appendChild(script)
    document.head.removeChild(script)
    function searchCallback(res){
        console.log(res);
    }
</script>
<!-- <script src="./js/index.js "></script> -->

</html>